<template>
	<view v-if="content" class="content_view">
		<u-parse :html="content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:'aboutus', // 关于我们 guide分享指引
				content:''
			};
		},
		onLoad:function(options){
			if(options && options.type){
				this.type = options.type
			}
			uni.setNavigationBarTitle({
				title:this.type == 'guide'?'分享指引':'关于我们'
			})
			this.getDetail()
		},
		methods:{
			getDetail () {
				this.content = this.vuex_business[this.type]
			}
		}
	}
</script>

<style lang="scss" scoped>
.content_view{
	padding: 0 16rpx;
}
</style>
